// 缴费流程
import {
	MessageBox,
	Loading
} from "element-ui";
export default {
	namespaced: true,
	state: {
		invoiceNo: "",
		records: [], //缴费信息
		billinfo: [],
		erCodeInfo: [], //获取二维码信息 自费
		erCodeInfoYb: [] //获取二维码信息 医保
	},
	getters: {},
	mutations: {
		updateinvoiceNo(state, invoiceNo) {
			state.invoiceNo = invoiceNo
		},
		updateRecordsInfo(state, records) {
			state.records = records
		},
		updateBillInfo(state, billinfo) {
			state.billinfo = billinfo
		},
		updateErCodeInfo(state, erCodeInfo) {
			state.erCodeInfo = erCodeInfo
		},
		updateErCodeYbInfo(state, erCodeInfoYb) {
			state.erCodeInfoYb = erCodeInfoYb
		}
	},
	actions: {
		updateinvoiceNo({
			commit
		}, invoiceNo) {
			commit('updateinvoiceNo', invoiceNo)
		},
		updateRecordsInfo({
			commit
		}, records) {
			commit('updateRecordsInfo', records)
		},
		updateBillInfo({
			commit
		}, billinfo) {
			commit('updateBillInfo', billinfo)
		},
		updateErCodeInfo({
			commit
		}, erCodeInfo) {
			commit('updateErCodeInfo', erCodeInfo)
		},
		updateErCodeYbInfo({
			commit
		}, erCodeInfoYb) {
			commit('updateErCodeYbInfo', erCodeInfoYb)
		}
	}
}
